{include file="common/header" /}
<body>
<head>
 {include file="common/personal_top" /}
<!--用户中心样式-->

<div class="orderbox" style="width: 980px;margin: 0 auto;">
<div class=" clear bread" style="padding: 20px 0;font-size: 14px;color:#666;">当前位置：<a href="#">首页</a> <span class="pipe">&gt;</span> 提交订单</div>
  <div class="cont">
   <div class="chenggong">
    <h3>下单成功</h3>
    <div class="zhifu">
     您选择的支付方式是 <strong class="red">支付宝</strong><br />
     <a href="javascript:void(0)" target="_blank"><img src="__STATIC__/index/images/zhifu.png" width="133" height="41" /></a>
    </div>
   </div>
  </div>
</div>
<script>
$(function(){
  $('.zhifu a').click(function(){
    var str = location.href;
    var pos = str.indexOf('?');
    var str = str.substr(pos+1);
    var order_no = str.split('=')[0];
    var value = str.split('=')[1];
    var url = "{:url('order/paid')}";
    data = {'order_no':order_no,'value':value};
    $.post(url,data,function(result){
        if (result.code == 1) {
          location.href = result.data;
          alert(result.msg);
        } else if(result.code == 0) {
          alert(result.msg);
        }
    },'json');
  });
})
</script>
{include file="common/footer" /}
</body>
</html>
